from PIL import Image

# 需要加水印的图片
img = Image.open("C:/Users/639119222645/Pictures/Camera Roll/timg.jpg")

#水印图片
logo = Image.open("C:/Users/639119222645/Pictures/Camera Roll/u=3095080718,470424667&fm=27&gp=0.jpg")

#图层
layer = Image.new('RGBA', img.size, (255, 255, 255, 0))
layer.paste(logo, (img.size[0] - logo.size[0], img.size[1] - logo.size[1]))

#覆盖
img_after = Image.composite(layer, img, layer)
# img_after.show()
img_after.save("target.jpg")



